home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / src / Makefile.NeXT < prev    next >
Encoding:
Makefile  |  1996-10-22  |  2.0 KB  |  87 lines

  1. # Makefile for core library for NeXT contributed by Pascal Thibaudeau
  2. # (pthibaud@frbdx11.cribx1.u-bordeaux.fr)
  3.  
  4. # Mesa 3-D graphics library
  5. # Version:  2.0
  6. # Copyright (C) 1995-1996  Brian Paul
  7. #
  8. # This library is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU Library General Public
  10. # License as published by the Free Software Foundation; either
  11. # version 2 of the License, or (at your option) any later version.
  12. #
  13. # This library is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this library; if not, write to the Free
  20. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22.  
  23. # $Id$
  24.  
  25. # $Log$
  26.  
  27.  
  28.  
  29. ##### MACROS #####
  30.  
  31. VPATH = RCS
  32.  
  33. INCDIR = ../include
  34. LIBDIR = ../lib
  35.  
  36. CORE_SOURCES = accum.c alpha.c alphabuf.c api.c attrib.c bitmap.c \
  37.     blend.c bresenhm.c clip.c context.c copypix.c depth.c \
  38.     dlist.c draw.c drawpix.c enable.c eval.c feedback.c fog.c  \
  39.     get.c interp.c image.c light.c lines.c logic.c \
  40.     masking.c matrix.c misc.c pb.c pixel.c points.c pointers.c  \
  41.     polygon.c readpix.c scissor.c span.c stencil.c teximage.c \
  42.     texobj.c texture.c triangle.c varray.c vb.c vertex.c winpos.c \
  43.     xform.c
  44.  
  45. DRIVER_SOURCES = osmesa.c
  46.  
  47.  
  48. OBJECTS = $(CORE_SOURCES:.c=.o) $(DRIVER_SOURCES:.c=.o)
  49.  
  50.  
  51.  
  52. ##### RULES #####
  53.  
  54. .c.o:
  55.     $(CC) -c -I$(INCDIR) $(CFLAGS) $<
  56.  
  57.  
  58. ##### TARGETS #####
  59.  
  60. default:
  61.     @echo "Specify a target configuration"
  62.  
  63. clean:
  64.     -rm *.o *~
  65.  
  66. targets: $(LIBDIR)/$(GL_LIB)
  67.  
  68. # Make the library
  69. $(LIBDIR)/$(GL_LIB): $(OBJECTS)
  70.     $(MAKELIB) $(GL_LIB) $(OBJECTS)
  71.     $(RANLIB) $(GL_LIB)
  72.     mv $(GL_LIB)* $(LIBDIR)
  73.  
  74. include ../Make-config
  75.  
  76. include depend
  77.  
  78.  
  79.  
  80. #
  81. # Run 'make depend' to update the dependencies if you change what's included
  82. # by any source file.
  83. #
  84. dep: $(CORE_SOURCES) $(DRIVER_SOURCES)
  85.     makedepend -fdepend -Y -I../include $(SOURCES)
  86.  
  87.